package com.zls.feign;

import com.zls.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "sentinel-provider")
public interface UserFeign {
    @RequestMapping("/getUserById")
    public User getUserById(@RequestParam("id") Integer id);
}
